<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>健康记录 - 老年人健康档案服务平台</title>
    <link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <header>
            <div class="header-left">
                <a href="{{ url_for('index') }}" class="back-btn">
                    <i class="ri-arrow-left-line"></i>
                    返回首页
                </a>
                <h1>健康记录</h1>
            </div>
            <div class="user-actions">
                <form action="{{ url_for('logout') }}" method="GET" style="display: inline;">
                    <button type="submit"><i class="ri-logout-box-line"></i>退出登录</button>
                </form>
            </div>
        </header>

        <main>
            <div class="elderly-selector">
                <select id="elderlySelect" onchange="loadHealthRecords(this.value)">
                    <option value="">请选择老年人</option>
                </select>
            </div>
            <div class="action-bar">
                <button id="addRecordBtn" onclick="showAddRecordForm()">
                    <i class="ri-add-line"></i>添加记录
                </button>
            </div>
            <div id="record-table">
                <table>
                    <thead>
                        <tr>
                            <th>记录时间</th>
                            <th>体温(℃)</th>
                            <th>血压(mmHg)</th>
                            <th>健康评级</th>
                            <th>描述</th>
                            <th>医生建议</th>
                        </tr>
                    </thead>
                    <tbody id="record-list"></tbody>
                </table>
            </div>
        </main>
    </div>
    <script src="{{ url_for('static', filename='js/health_record.js') }}"></script>
</body>
</html> 